﻿<UserControl x:Class="IconEditor.Page"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="950" Height="600">
    <Grid x:Name="LayoutRoot" ShowGridLines="True" Background="#FF1E1E1E">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="450"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <Canvas x:Name="TopCanvas" Width="400" Height="400" Margin="25,25,0,0" Background="#FF515151" 
                HorizontalAlignment="Left" VerticalAlignment="Top" />

        <TextBlock x:Name="InputTextBlock" Margin="0,25,25,0" VerticalAlignment="Top" Height="180" FontSize="11"
            Foreground="#FFCCCCCC" TextWrapping="Wrap" Grid.Column="1" >        	
            ... model Borat
            annotation(Diagram(...), Icon(coordinateSystem(extent={{-100,-100},{100,100}}), graphics={
            Ellipse(visible=true, fillColor={255,127,127}, fillPattern=FillPattern.Solid, extent={{56.05,-19.86},{106.9,0.8964}}),
            Ellipse(visible=true, fillColor={255,127,127}, fillPattern=FillPattern.Solid, extent={{-94.8,-15.43},{-24.89,15.22}}),
            Ellipse(visible=true, fillColor={255,127,127}, fillPattern=FillPattern.Solid, extent={{-35.55,-18.83},{64.45,22}}),
            Text(visible=true, lineColor={0,0,255}, fillColor={0,0,255}, fillPattern=FillPattern.Solid, extent={{-99.71,-84.51},{100.2,-44.46}}, textString="%name")})); ...
        </TextBlock>

        <Button x:Name="ShowIcon" VerticalAlignment="Top" Content="&lt;- Show this Icon" Margin="0,209,375,0" 
                Grid.Column="1" Click="ShowIcon_Click" Height="30"/>

        <TextBlock Margin="0,0,25,21" VerticalAlignment="Bottom" Height="300" FontSize="11"
            Foreground="#FFCCCCCC" TextWrapping="Wrap" Grid.Column="1" x:Name="OutputTextBox">
        	... waiting for input
        </TextBlock>

        <Button x:Name="GetIcon" VerticalAlignment="Top" Content="Get Annotation -&gt;" Margin="0,243,375,0" 
                Grid.Column="1" Click="GetIcon_Click" Height="30"/>
    </Grid>
</UserControl>